<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="common/header.jsp"%>
<div class="clearfix"></div>
<div class="row">

	<div class="col-md-12">
		<div class="x_panel">
			<div class="x_title">
				<h2>
					普通管理员信息管理 <i class="fa fa-user"></i>- 您可以通过搜索来找到您想要的管理员。^_^
				</h2>
				<div class="clearfix"></div>
			</div>
			<div class="x_content">
				<form method="post" action="${pageContext.request.contextPath }/admin/selece" class="form-inline">
					<div class="form-group">
    					<label for="exampleInputName2">管理名</label>
    					<input type="text" class="form-control" id="name" name="name" >
  					</div>
  					<button type="submit" class="btn btn-default">查询</button>
				</form>
			</div>
		</div>
	</div>
<div class="col-md-12 col-sm-12 col-xs-12">
	<div class="x_panel">
		<div class="x_content">
			<p class="text-muted font-13 m-b-30"></p>
			<div id="datatable-responsive_wrapper"
				class="dataTables_wrapper form-inline dt-bootstrap no-footer">
				<div class="row">
					<div class="col-sm-12">
						<table id="datatable-responsive" class="table table-striped table-bordered dt-responsive nowrap dataTable no-footer dtr-inline collapsed"
							cellspacing="0" width="100%" role="grid" aria-describedby="datatable-responsive_info" style="width: 100%;">
							<thead>
								<tr role="row">
									<th class="sorting_asc" tabindex="0"
										aria-controls="datatable-responsive" rowspan="1" colspan="1"
										style="width: 50px;" aria-label="First name: activate to sort column descending"
										aria-sort="ascending">管理员名</th>
									<th class="sorting" tabindex="0"
										aria-controls="datatable-responsive" rowspan="1" colspan="1"
										style="width: 20px;"
										aria-label="Last name: activate to sort column ascending">
										真实姓名</th>
										<th class="sorting" tabindex="0"
										aria-controls="datatable-responsive" rowspan="1" colspan="1"
										style="width: 20px;"
										aria-label="Last name: activate to sort column ascending">
										性别</th>
										<th class="sorting" tabindex="0"
										aria-controls="datatable-responsive" rowspan="1" colspan="1"
										style="width: 20px;"
										aria-label="Last name: activate to sort column ascending">
										邮箱</th>
										<th class="sorting" tabindex="0"
										aria-controls="datatable-responsive" rowspan="1" colspan="1"
										style="width: 20px;"
										aria-label="Last name: activate to sort column ascending">
										手机</th>
										<th class="sorting" tabindex="0"
										aria-controls="datatable-responsive" rowspan="1" colspan="1"
										style="width: 20px;"
										aria-label="Last name: activate to sort column ascending">
										地址</th>
									<th class="sorting" tabindex="0"
										aria-controls="datatable-responsive" rowspan="1" colspan="1"
										style="width: 50px;"
										aria-label="Last name: activate to sort column ascending">
										创建时间</th>
									<th class="sorting" tabindex="0"
										aria-controls="datatable-responsive" rowspan="1" colspan="1"
										style="width: 100px;"
										aria-label="Last name: activate to sort column ascending">
										操作</th>
								</tr>
							</thead>
							<tbody>
								<c:forEach var="BackendUser" items="${page.list }">
									<tr role="row" class="odd">
										<td>${BackendUser.user_code }</td>
										<td>${BackendUser.user_name }</td>
										<%-- <td><fmt:formatDate value="${BackendUser.createtime }" pattern="yyyy-mm-dd hh:mm:ss"/></td> --%>
										<c:if test="${BackendUser.sex == 1}">
											<td>男</td>
										</c:if>
										<c:if test="${BackendUser.sex == 2}">
											<td>女</td>
										</c:if>
										<td>${BackendUser.email }</td>
										<td>${BackendUser.mobile }</td>
										<td>${BackendUser.address }</td>
										<td><fmt:formatDate value="${BackendUser.creattime  }" pattern="yyyy-mm-dd hh:mm:ss"/></td>
										<c:if test="${BackendUser.type == 2}">
										<td><a href="${pageContext.request.contextPath }/admin/deluser/${BackendUser.id}"> <input type="button" class="delete" value="删除"  id="delete" onclick="deletes(this);"/></a></td>
										</c:if>
									</tr>
								</c:forEach>
							</tbody>
						</table>
					</div>
				</div>
				<div class="row">
					<div class="col-sm-5">
						<div class="dataTables_info" id="datatable-responsive_info"
							role="status" aria-live="polite">共${page.total}条记录
							${page.prePage+1}/${page.pages }页</div>
					</div>
					<div class="col-sm-7">
						<div class="dataTables_paginate paging_simple_numbers"
							id="datatable-responsive_paginate">
							<ul class="pagination">
									<li class="paginate_button previous"><a
										href="${pageContext.request.contextPath }/thematic/thematicIndex?pageNum=${page.firstPage}"
										aria-controls="datatable-responsive" data-dt-idx="0"
										tabindex="0">首页</a>
									</li>
									<li class="paginate_button "><a
										href="${pageContext.request.contextPath }/thematic/thematicIndex?pageNum=${page.prePage}"
										aria-controls="datatable-responsive" data-dt-idx="1"
										tabindex="0">上一页</a>
									</li>
									<li class="paginate_button "><a
										href="${pageContext.request.contextPath }/thematic/thematicIndex?pageNum=${page.nextPage}"
										aria-controls="datatable-responsive" data-dt-idx="1"
										tabindex="0">下一页</a>
									</li>
									<li class="paginate_button next"><a
										href="${pageContext.request.contextPath }/thematic/thematicIndex?pageNum=${page.lastPage}"
										aria-controls="datatable-responsive" data-dt-idx="7"
										tabindex="0">尾页</a>
									</li>
							</ul>
						</div>
					</div>
					</div>
				</div>
			</div>

		</div>
	</div>
</div>
</div>
<%@include file="common/footer.jsp"%>
<script src="${pageContext.request.contextPath }/statics/backstage/localjs/rollpage.js"></script>
<script src="${pageContext.request.contextPath }/statics/backstage/localjs/applist.js"></script>